*{
    padding: 0;
    margin: 0;
}
ul{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
}
ul li{
    list-style: none;
    margin: 0 5px;
    display: inline-block;

}
ul li a{
    overflow: hidden;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
    transition:.5s;
    background: #f1f1f1;
}
ul li a i{
    display: block;
    width: 100%;
    color: #777;
    transition: .5s;
}
ul li:hover a i:nth-child(1){
    transform: translateY(-30px);
}
ul li:hover a i:nth-child(2){
    transform: translateY(-30px);
    color: #C4E538;
}
ul li:hover:nth-child(1) a{
    background: #9980FA;
}
ul li:hover:nth-child(2) a{
    background: #D980FA;
}
ul li:hover:nth-child(3) a{
    background: #1e90ff;
}
ul li:hover:nth-child(4) a{
    background: #ff4757;
}



